package com.jt.mapper;

import com.jt.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper //将接口交给Mybatis管理，之后将接口交给Spring容器管理 Map<userMapper,JDK代理对象>

public interface UserMapper {

    void deleteUserById(Integer id);

    @Select("select * from demo_user")
    List<User> findAll();
}
